package com.eco.common.swagger;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * swagger 属性配置
 *
 * @author Administrator
 */
@Data
@Component
@ConfigurationProperties("eco.swagger")
public class SwaggerProperties {
    /**
     * 是否开启swagger
     **/
    private Boolean enabled;
    /**
     * 标题
     **/
    private String title = "";
    /**
     * 描述
     **/
    private String description = "";
    /**
     * 版本
     **/
    private String version = "";

    /**
     * swagger会解析的包路径
     **/
    private String basePackage = "";

    /**
     * host信息
     **/
    private String passwordTokenUrl = "";

    private Contact contact = new Contact();

    @Data
    public static class Contact {
        /**
         * 联系人
         **/
        private String name = "";
        /**
         * 联系人url
         **/
        private String url = "";
        /**
         * 联系人email
         **/
        private String email = "";
    }

}
